package ldk.util.layoutmanagers.adapter;

import android.support.annotation.Nullable;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.ViewGroup;

import java.util.List;

public class TagsAdapter extends BaseAdapter<TagsViewHolder, String>{
    @SuppressWarnings("unused")
    private static final String TAG = "TagsAdapter";

    public TagsAdapter(@Nullable List<String> data) {
        super(data);
    }

    @Override
    public TagsViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
        return new TagsViewHolder(parent.getContext());
    }

    @Override
    public void onBindViewHolder(TagsViewHolder holder, int position) {
        super.onBindViewHolder(holder, position);
        holder.tagText.setText(getItemOfPosition(position));
        Log.d(TAG, "onBindViewHolder + " + getItemOfPosition(position));
    }
}
